<?php
	include_once "history_db.php";
	
	class history_bs
	{
		//--------------Field---------------
		private $TenDangNhap = "";
		public function SetTenDangNhap($TenDangNhap) { $this->TenDangNhap = $TenDangNhap; }
		public function GetTenDangNhap()             { return $this->TenDangNhap;         }
		
		private $ThoiGian = "0000-00-00 00:00:00";
		public function SetThoiGian($ThoiGian)       { $this->ThoiGian = $ThoiGian;       }
		public function GetThoiGian()                { return $this->ThoiGian;            }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new history_db();
			return $data->Them($this->TenDangNhap, $this->ThoiGian);
		}
		
		public function LayDanhSach()
		{
			$data = new history_db();
			return $data->LayDanhSach($this->TenDangNhap, $this->ThoiGian);
		}
	}
?>